import React, { Component } from 'react';
import './index.scss';
import LoginForm from "./LoginForm";
import RegisterForm from './RegisterForm';
export default class Login extends Component {
    
    state = {
        formType: "login"
    };

    switchForm = (value) => {
        this.setState({formType:value})
    }
    render() {
        return (
            <div className="login-wrap">
                <div className="form-wrap">
                    <div> 
                        {/* {this.state.formType==='login' 
                        ? <LoginForm switchForm={this.switchForm}></LoginForm>
                        :<RegisterForm switchForm={this.switchForm}></RegisterForm>}   */}
                        <LoginForm switchForm={this.switchForm}></LoginForm>                                       
                    </div>                
                </div>
            </div>
            
        )
    }
}
